package com.chb.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author ：张家琪
 * @date ：Created in 2023/10/11 9:28
 * @description：
 * @modified By：
 * @version:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class QuitStaff {
    private Integer id;
    private Integer staffid;
    private String staffname;
    private String password;
    private String idcard;
    private String address;
    private String phone;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date entrytime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date leavetime;
    private Integer state;
    private Integer roleid;
    private Integer deptid;
    private String url;
    private Integer branchid;

    private String branchname;
    private String deptname;
    private String rolename;


    //关联的门店对象
    private Branch branch;
    //关联的角色
    private Role role;
    //关联的部门
    private Department department;
}
